]> dgit.raspbian.org Git - gnome-shell.git/commit
shell: Add device monitor for cameras
authorrobert.mader@collabora.com <robert.mader@collabora.com>
Sun, 9 Jul 2023 19:14:25 +0000 (21:14 +0200)
committerrobert.mader@collabora.com <robert.mader@collabora.com>
Sat, 29 Jul 2023 10:55:15 +0000 (13:55 +0300)
commitd09d24666a28d834c0baef0dd4ded7e02af05cdf
tree41163fb00a56bb97c3cdf304783925f68f16fe35
parent02f19528519b80b9171204994f8f99e49a2d3c11
shell: Add device monitor for cameras

Pipewire allows us to easily track whether any cameras are in used by
checking the state of camera nodes. Add a simple camera monitor to the
shell, allowing us to show e.g. a status indicator.

Naturally the monitor is limited to apps using Pipewire for camera
access and thus subject to the same chicken-egg problem like the camera
portal - it could confuse users that apps may use the camera without
being noticed by the monitor. The hope and assumption here is that a
better shell integration might speed up adoption of the new camera APIs

Pipewire 0.3.49 is required for refcounted `pw_init()`/`pw_deinit()`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2840>
config.h.meson
meson.build
meson_options.txt
src/meson.build
src/shell-camera-monitor.c [new file with mode: 0644]
src/shell-camera-monitor.h [new file with mode: 0644]